param($installPath, $toolsPath, $package, $project)
    # This is the MSBuild targets file to add
    $targetsFile = [System.IO.Path]::Combine($toolsPath, 'SheepAspect.targets')

    # Need to load MSBuild assembly if it's not loaded yet.
    Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    # Grab the loaded MSBuild project for the project
    $msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

    # Make the path to the targets file relative.
    $projectUri = new-object Uri('file://' + $project.FullName)
    $targetUri = new-object Uri('file://' + $targetsFile)
    $relativePath = $projectUri.MakeRelativeUri($targetUri).ToString().Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

    # Remove the import
    $msbuild.Xml.Imports | Where-Object {$_.Project -eq $relativePath } | Foreach-Object { $msbuild.Xml.RemoveChild($_) | out-null }
    
	# Remove project properties
    $msbuild.Xml.PropertyGroups | Where-Object {$_.Label -eq 'SheepAspectProperties' } | Foreach-Object { $msbuild.Xml.RemoveChild($_) | out-null }

    $project.Save()